{
    "cells": [
        {
            "cell_type": "code",
            "execution_count": 6,
            "source": [
                "import pandas as pd\n",
                "import pathlib\n",
                "import re\n",
                "HARDWARE_BITMODE=64\n",
                "uf20path=r'E:\\outside\\0716升级\\0716升级\\UF20'\n",
                "dirname = pathlib.Path(uf20path)\n",
                "print(re.search(str(HARDWARE_BITMODE) + '[位]*', '64'))\n",
                "#[print(x.name) for x in dirname.iterdir() if x.is_dir() and not re.search(str(HARDWARE_BITMODE) + '[位]', x.name)]\n"
            ],
            "outputs": [
                {
                    "output_type": "stream",
                    "name": "stdout",
                    "text": [
                        "<re.Match object; span=(0, 2), match='64'>\n"
                    ]
                }
            ],
            "metadata": {}
        }
    ],
    "metadata": {
        "orig_nbformat": 4,
        "language_info": {
            "name": "python",
            "version": "3.9.2",
            "mimetype": "text/x-python",
            "codemirror_mode": {
                "name": "ipython",
                "version": 3
            },
            "pygments_lexer": "ipython3",
            "nbconvert_exporter": "python",
            "file_extension": ".py"
        },
        "kernelspec": {
            "name": "python3",
            "display_name": "Python 3.9.2 64-bit"
        },
        "interpreter": {
            "hash": "bd4c67ef142469da7dc4d338a32ac40116904d26076b8e6aa587d80720bc6a2b"
        }
    },
    "nbformat": 4,
    "nbformat_minor": 2
}